﻿@model SchoolCommunicationSystem.Models.ViewGradesByClassModels
@if (Model.ClassInSchoolYear != null && Model.ClassInSchoolYear.Count() > 0)
{
    using (Html.BeginForm("SelectClass", "ViewGradesByClass", FormMethod.Post))
    {
        @Html.HiddenFor(m => m.SchoolYear)
        @Html.HiddenFor(m => m.Term)
        @Html.DropDownListFor(
                    m => m.ClassInSchoolYear,
                    new SelectList(Model.ClassInSchoolYear, "classID", "className"),
                    "[Hãy chọn lớp học]"
                )
        <input type="submit" value="Select" />
    }
}
else
{
    @Html.DropDownList("Temp")
}